#include <stdio.h>
#include <math.h>
#include <stdbool.h>

void print(int number, bool isLast){
    switch (number)
    {
    case 0:
        printf("ling");
        break;
    case 1:
        printf("yi");
        break;
    case 2:
        printf("er");
        break;
    case 3:
        printf("san");
        break;
    case 4:
        printf("si");
        break;
    case 5:
        printf("wu");
        break;
    case 6:
        printf("liu");
        break;
    case 7:
        printf("qi");
        break;
    case 8:
        printf("ba");
        break;
    case 9:
        printf("jiu");
        break;
    }
    if(!isLast)
        printf(" ");
}


int main()
{
    int a, b, n = 0;
    scanf("%d", &a);
    bool isPositive;

    if (a == 0)
    {
        printf("ling");
    }
    isPositive = a > 0;

    if (!isPositive)
        a = -a;
    for (int i = 1; i <= a; i *= 10)
    {
        n += 1;
    }
    if (!isPositive)
        a = -a;

    if(!isPositive)
        printf("fu ");
    a = -a;
    for (int j = 1; n > 0; j++)
    {
        b = a / pow(10, n - 1); // //获取最高位的元素
        print(b, !(n > 1));
        a -= b * pow(10, n - 1);
        n--;
    }
}